package com.wyh.domain.vo.gfive;


import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;



@Data
@AllArgsConstructor
@NoArgsConstructor
public class InvoicerecordsNoVO {

    /**
     * 通知单编号
     */
    @ApiModelProperty(name = "noticenumber",value = "通知单编号",required = false)
    private String noticenumber;

    /**
     * 发票类型
     */
//    private Integer invoicingtype;
    @ApiModelProperty(name = "invoicingtype",value = "发票类型",required = false)
    private String invoicingtype;
    /**
     * 业主
     */
//    private Integer owner;
    @ApiModelProperty(name = "owner",value = "业主",required = false)
    private String owner;
    /**
     * 购买方
     */
//    private Integer buyer;
    @ApiModelProperty(name = "buyer",value = "购买方",required = false)
    private String buyer;

    /**
     * 申请 开票金额
     */
    @ApiModelProperty(name = "amount",value = "开票金额",required = false)
    private Double amount;
    /**
     * 已上传发票 数量
     */
    @ApiModelProperty("已上传发票 数量")
    private Integer InvoNumber;
    /**
     * 已开票 金额
     */
    @ApiModelProperty("已开票 金额")
    private Double InvoicingIsNear;
    /**
     * 未开票金额
     */
    @ApiModelProperty("未开票金额")
    private Double uninvoicedAmount;

    @JsonIgnore
    public boolean isEmptyT() {
        return (noticenumber == null || noticenumber.isEmpty()) &&
                (invoicingtype == null || invoicingtype.isEmpty()) &&
                (owner == null || owner.isEmpty()) &&
                (buyer == null || buyer.isEmpty()) &&
                amount==null;
    }

}
